package com.tech.connect.model;

import java.io.Serializable;
import java.util.Objects;

public class ItemCatSub implements Serializable{
    public String  value;
    public String description;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ItemCatSub that = (ItemCatSub) o;
        return Objects.equals(value, that.value) &&
                Objects.equals(description, that.description);
    }

    @Override
    public int hashCode() {

        return Objects.hash(value, description);
    }

    @Override
    public String toString() {
        return description;
    }
}
